package demoMod.stsconsole.monsters.exordium;

import demoMod.stsconsole.helpers.DamageInfo;
import demoMod.stsconsole.monsters.AbstractMonster;
import demoMod.stsconsole.powers.WeakPower;

public class AcidSlime_S extends AbstractMonster {
    public static final String ID = "AcidSlime_S";

    public AcidSlime_S() {
        super(ID);
        setHp(8, 12);
        this.damage.add(new DamageInfo(3, this));
    }

    @Override
    protected void getMove(int aiRng) {
        if (aiRng < 50) {
            this.setMove((byte)1, Intent.ATTACK, this.damage.get(0));
        } else {
            this.setMove((byte)2, Intent.DEBUFF);
        }
    }

    @Override
    public void takeTurn() {
        switch (this.nextMove) {
            case 1:
                this.defaultTarget.damage(this.damage.get(0));
                break;
            case 2:
                this.defaultTarget.applyPower(this, new WeakPower(this.defaultTarget, 2));
                break;
        }
        rollMove();
    }
}
